package com.vast.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

@Document("tb_answer")
public class AnswerEntity implements Serializable {

    @Id
    private String answerId;
    /**
     * 回答内容
     */
    private String answerContent;
    /**
     * 问题回答时间
     */
    private String updateTime;

    /**
     * 问题用户ID
     */
    private Integer userId;
    /**
     * 问题用户名称
     */
    private String userName;
    /**
     * 问题用户名称
     */
    private String problemId;

    public void setAnswerId(String answerId) {
        this.answerId = answerId;
    }

    public void setAnswerContent(String answerContent) {
        this.answerContent = answerContent;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setProblemId(String problemId) {
        this.problemId = problemId;
    }

    public String getAnswerId() {
        return answerId;
    }

    public String getAnswerContent() {
        return answerContent;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public Integer getUserId() {
        return userId;
    }

    public String getUserName() {
        return userName;
    }

    public String getProblemId() {
        return problemId;
    }
}
